Component({
    properties: {
        goodsInfo: {
            type: null
        },
        broadcast_data: {
            type: null
        },
        is_goodsType: {
            type: null
        }
    },
    lifetimes: {
        attached: function() {
            this.myVideo = wx.createVideoContext("myVideo");
        }
    },
    observers: {},
    data: {
        autoplay: 2500
    },
    methods: {
        previewImg: function(t) {
            var a;
            a = t.currentTarget.dataset.key, wx.previewImage({
                current: a ? this.data.goodsInfo.thumb_url[a] : this.data.goodsInfo.thumb_url,
                urls: this.data.goodsInfo.thumb_url
            });
        },
        ended: function() {
            this.setData({
                autoplay: 2500
            });
        },
        play: function() {
            var t = !this.data.autoplay && 2500;
            this.setData({
                autoplay: t
            });
        }
    }
});